package com.atguigu;

import com.atguigu.statics.StaticProxyCalculator2;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package com.atguigu
 * @date 2024/4/22 下午7:17
 */
public class UserAop {
    public static void main(String[] args) {
        //房东 目标
        Calculator2 target = new Calculator2PureImpl();
        //中介 代理
        Calculator2 proxy=new StaticProxyCalculator2(target);
        //调用
        proxy.add(1,1);

    }
}
